package com.hgw.imsever.mapper;

import com.hgw.imsever.entity.UserGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserGroupMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(UserGroup record);

    UserGroup selectByPrimaryKey(String uuid);

    List<UserGroup> selectAll();

    int updateByPrimaryKey(UserGroup record);

    List<String> getUserIdsByGroupId(@Param("groupId") String groupId);
}